package com.mathset.business.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mathset.bean.MailBox;
import com.mathset.bean.Member;
import com.mathset.business.dao.IMailDao;
import com.mathset.mybatis.mapper.IMailOperation;
import com.mathset.mybatis.mapper.IMemberOperation;

@Repository
public class MailDao implements IMailDao {

	@Autowired
	private IMailOperation iMailOperation;
	
	@Override
	public String retrieveMailAddressByMailToken(String token) {
		return iMailOperation.retrieveMailAddressByMailToken(token);
	}

	@Override
	public void updateMemberMailValidated(String email) {
		iMailOperation.updateMemberMailValidated(email);
	}

	@Override
	public int addMailBox(MailBox mailBox) {
		return iMailOperation.addMailBoxVerify(mailBox);
	}
}
